package day2.Exer;

import java.util.Scanner;

public class Car {
    String tyre;
    String underpan;
    String carframe;
    String color;
    Motor a=new Motor();
    public void carshow(){
        System.out.println("这辆车的轮胎品牌是"+tyre+"底盘是："+underpan+"车架是："+carframe+"颜色是"+color);
        System.out.println("发动机信息：");
        a.motorshow();
    }
}
